package com.pro.mapper;

import com.pro.pojo.*;
import org.apache.ibatis.annotations.Param;
//import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/1/10 10:46
 * @Version 1.0
 */
public interface MicrocircleMapper {

    //查询微圈操作日志
    List<JsLog> getLog(JsLog jsLog);

    //删除微圈操作日志
    boolean delLog(Integer logId);

    //查询个人微圈
    List<JsMicrocircle> getMyMicrocircleList(JsMicrocircle jsMicrocircle);

    //查询个人微圈收藏量
    Integer getMyMicrocircleCollectionNums(@Param("microcircleId") Integer microcircleId, @Param("collectionType") Integer collectionType);

    //删除个人微圈
    boolean delMicroCircle(@Param("microcircleId") Integer microcircleId, @Param("show") Integer show);

    //查询微圈分类
    JsActicleCategroy queryMicroCircleClass(Integer acticleCategroyId);

    //查询后台用户微圈评论、
    List<JsComment> getMicroCircleCommentAfter(@Param("commodityId") Integer commodityId,@Param("type") Integer type);
    //查询前天用户评论
    List<JsComment> getMicroCircleCommentBefore(@Param("commodityId") Integer commodityId,@Param("type") Integer type);

    //隐藏和显示微圈评论
    boolean hideComment(@Param("id") Integer id, @Param("display") Integer display);

    //删除微圈评论
    boolean delComment(@Param("id") Integer id, @Param("status") String status);

    //添加微圈评论
    boolean addMicroCircleComment(JsComment jsComment);

    //查询微圈分类树
    List<JsActicleCategroy> getJsActicleCategroy();

    //添加ztree树节点
    boolean addZtree(JsActicleCategroy jsActicleCategroy);

    //删除树节点
    boolean delZtree(Integer acticleCategroyId);

    //修改树节点
    boolean updateZtree(@Param("artcleCategroyName") String artcleCategroyName, @Param("acticleCategroyId") Integer acticleCategroyId);

    //查询草稿微圈信息
    JsMicrocircle getDraftMicrocircle(Integer details);

    //修改草稿状态微圈
    boolean updateDraftMicrocircle(JsMicrocircle jsMicrocircle);

    //添加微圈
    boolean addDraftMirList(JsMicrocircle jsMicrocircle);

    //添加微圈图片表
    boolean addMirImg(JsMicrocircleImg jsMicrocircleImg);

    //添加微圈审核表
    boolean addMirExamine(JsCourseRecord jsCourseRecord);

    //点击发布，修改草稿状态微已通过
    boolean upDraft(JsMicrocircle jsMicrocircle);

    //添加微圈操作日志
    boolean addLog(JsLog jsLog);

    //微圈统计 查询微圈分类
    List<Integer> getMicroCircleClassification();

    //微圈统计 查询点赞，浏览数量
    JsMicrocircle getHitsLikeNums(Integer acticleCategroyId);

    //微圈统计 查看收藏数量
    Integer getCollectionNums(Integer acticleCategroyId);
}
